<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let arr  = [1,2,3]
        const [a,b,c] = arr
        console.log(a,b,c)

        let person = {
            name: '解构',
            age: 18,
            title: 'hello world'
        }
        const {name,age:age1,title} = person
        console.log(name,age1,title)

        let a2 = 'helloworld'
        console.log(a2.startsWith('hello'))
        console.log(a2.endsWith('ld'))
        console.log(a2.includes('owo'))

        let b2 = `这个相当于是多行注释
               保留了空格
                   挺好的`
        console.log(b2)

        function fun1() {
            return '现在该吃饭了'
        }
        let c2 = `我叫${name}，我今年${age1}岁，${fun1()}`
        console.log(c2)
    </script>
</body>
</html>